package com.starlight.easybuyprictice.service;

import com.starlight.easybuyprictice.entity.MsMessage;
import com.starlight.easybuyprictice.mapper.MsMessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author yfy2001
 * @date 2022/12/3 20:07
 */
@Service
public class MessageService {
    @Autowired
    private MsMessageMapper msMessageMapper;

    public Result listMessage(){
        Result result=new Result();
        List<MsMessage> msMessageList = msMessageMapper.selectAllMessage();
        result.setData(msMessageList);
        return result;
    }
}
